@{
    Layout = null;

    List<NewsMine.DomainObjects.WebSiteInfo> websitesTemp = new List<NewsMine.DomainObjects.WebSiteInfo>();

    websitesTemp = ((QResult)Model).Websites;
    var DataFromController = ((QResult)Model);
    var pager = ((QResult)Model).Pager;
    string currentSearchString = ((QResult)Model).SearchString;
    

    string previousPageUrl = string.Empty;
    string nextPageUrl = string.Empty;

    if (pager.CurrentPageIndex > 1) 
    {
        previousPageUrl = DataFromController.CurrentUrl + "/" + (pager.CurrentPageIndex - 1).ToString();
    }
    
    if(pager.CurrentPageIndex<=2 && pager.CurrentPageIndex<pager.LastPageIndex)
    {
        nextPageUrl = DataFromController.CurrentUrl + "/" + (pager.CurrentPageIndex + 1).ToString();
    }
    

    var languageSpecificWebSites = ((QResult)Model).CurrentLanguageWebsites;

    string selectedLanguage = ((QResult)Model).CurrentLanguage;

    string selectedCategory = ((QResult)Model).CurrentCategory;

    var menus = NewsMine.DataManagers.WebSiteInfoManager.GetAllMenuItems();

    ((QResult)Model).PrepareTitleAndDescription();

    string pageTitle = ((QResult)Model).Title;
    string pageDescription = ((QResult)Model).Description;

    if (true)
    {
        menus.Clear();

        foreach (var wb in languageSpecificWebSites)
        {
            menus.AddRange(wb.MenuItemconfigs);
        }
    }

    menus = (from m in menus
             orderby m.Title
             select m).ToList();

    List<string> menuTitles = new List<string>();

    
    foreach (NewsMine.DomainObjects.WebSiteMenu m in menus)
    {
        if (!string.IsNullOrEmpty(m.Title) && menuTitles.Contains(m.Title.Trim()) == false)
        {
            menuTitles.Add(m.Title.Trim());
        }
    }

    string searchPath = "Search";

    bool IsAdminPortal = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings.Get("IsAdminPortal"));

    if (IsAdminPortal == true)
    {
       searchPath = "AdminSearch";
    }

    bool isAdminSearch = false;
    if (Request.Url.AbsolutePath.ToLower().StartsWith("/AdminSearch".ToLower()))
    {
        isAdminSearch = true;
    }
    

        //layout : 179 + 544 + 244
}


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@*
    @if (pager.CurrentPageIndex > 1 && pager.CurrentPageIndex <5)
    {
    <meta name="robots" content="noindex,follow"/>
    }*@

    @if (pager.CurrentPageIndex > 1 || !this.Request.Url.Host.ToLower().StartsWith("www.lookatnews.com"))
    {
    <meta name="robots" content="noindex,nofollow"/>
    }

    <link rel="canonical" href="@DataFromController.CurrentUrl.ToLower()"/>  
  
    @if (!string.IsNullOrEmpty(previousPageUrl))
    {
    <link rel="prev" href="@previousPageUrl"/>
    }
    @if (!string.IsNullOrEmpty(nextPageUrl))
    {
    <link rel="next" href="@nextPageUrl"/>
    }
    <title>@pageTitle</title>
    
    <meta name="description" content="@pageDescription" />
    @*<meta name="description" content="LookAtNews large news aggregator brings Latest,Breaking, current news headlines from india on Politics, Sports,movies, business, stock markets, Cricket." />*@
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/content/site.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion'>
    <link href="@Url.Content("~/content/css/bootstrap.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion" rel="stylesheet">
    <link href="@Url.Content("~/content/css/bootstrap-responsive.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion" rel="stylesheet">
    <link rel='stylesheet' href='@Url.Content("~/content/PinStyle1.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion' media='screen' />
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/content/css/fonts1.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion'>
    <link rel="stylesheet" type="text/css" href='@Url.Content("~/content/css/nanoscroller.css")?v=@WebApp1.Models.WebAppMetaData.ContentVersion'>

    <link href='http://fonts.googleapis.com/css?family=Andika' rel='stylesheet' type='text/css'>
    <script src="@Url.Content("~/content/js/jquery.js")?v=@WebApp1.Models.WebAppMetaData.ContentVersion" type="text/javascript"></script>
    <script src="@Url.Content("~/content/js/global.js")?v=@WebApp1.Models.WebAppMetaData.ContentVersion" type="text/javascript"></script>
    <script src="@Url.Content("~/content/js/jquery.cookie.js")?v=@WebApp1.Models.WebAppMetaData.ContentVersion" type="text/javascript"></script>
    
    <script type="text/javascript">
        //global params

        var columnMode = "2";
        var defaultColumnWidth = 400;
        var imageDisplay = "inline";

        var cookieColumnMode = $.cookie("vm");

        if (cookieColumnMode == undefined || cookieColumnMode == null) {
            columnMode = "3";
        }
        else {
            columnMode = cookieColumnMode;
        }

        function setupViewButtons() {
            $(".vwbtn").children("i").removeClass("icon-white");
            $(".vwbtn").removeClass("btn-primary");
            var buttons = $(".vwbtn");

            for (var i = 0; i < buttons.length; i++) {
                if ($(buttons[i]).attr("mode") == columnMode) {
                    $(buttons[i]).children("i").addClass("icon-white");
                    $(buttons[i]).addClass("btn-primary");
                }
            }
        }

        jQuery(document).ready(function ($) {
            $(".timeago").timeago();
            $(".nano").nanoScroller();
            setupViewButtons();
            //$("img.newsItemImage").lazyload({ effect: "fadeIn" });

            $(".vwbtn").click(function () {
                //alert("Handler for .click() called." + $(this).attr("id"));

                $(".vwbtn").children("i").removeClass("icon-white");
                $(".vwbtn").removeClass("btn-primary");

                $(this).children("i").addClass("icon-white");
                $(this).addClass("btn-primary");
                columnMode = $(this).attr("mode");

                $.removeCookie('vm');
                $.removeCookie('vm', { path: '/' });
                $.cookie("vm", columnMode, { expires: 365, path: '/' });

                ResizeAllMainContainersAccordingToWindowSize();
                //alert(columnMode);

            });

        });
    </script>

    <style>
    
    .affix {
  width: 100%;
  margin-left:auto;
  background:rgba(255,255,255,0.7);
  margin-right:auto; 
  position: fixed;
  top: 38px;
  left:0px; 
}

    
    </style>

</head>
<body  style="background-color:#e7ebf2; margin: auto; text-align: center;width:990px;position: relative">

    <div class="navbar navbar-fixed-top" style="background-color:#fff; border-bottom:1px solid #ccc;">
       @*class="nav navbar-fixed-top"*@

        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        </a>

       

        <div class="pull-left"   style="background-color: #fff; 
            margin-left:10%;margin-right:1%;">
                <a href="/" title="lookatnews.com">
                <img src="@Url.Content("~/content/img/lookatnews_final_logo.png")" alt="Lookatnews.com Home" style="height:35px;"/>
            </a>
        </div>

   
   <div class="nav-collapse collapse navbar-responsive-collapse">
    
   <ul class="nav">
       <li class="pull-left">     
            <form class="navbar-search" action="/@searchPath" style="margin-top: 4px; margin-right: 10px;">
                <div class="input-append">
                    <input type="text" name="q" class=" input-xlarge" placeholder="Search" value="@currentSearchString">
                    <button type="submit" class="btn btn-primary" style="height: 30px">
                        <li class="icon-search icon-white"></li>
                    </button>

                   
                </div>
                </form>
        </li>

       


        @if (IsAdminPortal == true && isAdminSearch == true)
        {
            <li>
            <input type='button' value='Remove this from the index' class='btn btn-warning' style='z-index:2500;position:relative;left:0px;top:0px;'/>
        </li>
        }
         </ul>



           <div class="btn-group pull-right bgscr" style="margin-right:10px;">
            @*<button mode="0" class="vwbtn btn" style="margin:1px;height: 30px"><i class="vwicon icon-list-alt"></i></button>
              <button mode="1" class="vwbtn btn" style="margin:1px;height: 30px"><i class="vwicon icon-list"></i></button>*@
            <button mode="2" class="vwbtn btn btn-primary" style="margin:1px;height:30px;"><i class="vwicon icon-th-large icon-white"></i></button>
           <button mode="*" class="vwbtn btn" style="margin:1px;height:30px;"><i class="vwicon icon-th"></i></button>
          
          </div>

         </div>

    </div>
   
  

    <div style="padding-top:45px;width:100%;background-color:#ffffff;">

       @RenderPage("MenuByLanguage.cshtml")
    </div>
    

    @RenderBody()

    
    <script src="@Url.Content("~/content/js/bootstrap.min.js")"></script>
    <script src="@Url.Content("~/content/js/jquery.timeago.js")?v=@WebApp1.Models.WebAppMetaData.ContentVersion"></script>
    <script src="@Url.Content("~/content/js/jquery.lazyload.js")?v=@WebApp1.Models.WebAppMetaData.ContentVersion"></script>
    <script src="@Url.Content("~/content/js/jquery.nanoscroller.js")"></script>
    

<hr />
    <div>
	<span>Copyright &copy; 2013 <a href="#">lookatnews.com</a>.     <a style="color:Red;font-weight: bold;" href="http://www.surveymonkey.com/s/9CMMBT2" target="_blank" style="color:white" rel="nofollow">Feedback please...</a></span>
                   
</div>
<hr />
<div style="font-size:14px">
<p>
<b>Disclaimer:</b>
Most of the news items and articles are provided to our users merely for easy access and are taken for informational purpose only.
We do not own the copyrights for the content shown in this site.
All News Feeds, Images and videos links contained in this website were found on the internet via stadard syndication sharings.  
If the original copyright holders feel that any copyright voilation happened in this site,please contact us at <i>webmaster AT lookatnews.com</i>. 
If by anyhow any of them is offensive / copy righted to you, please, contact us asking for the removal. 
if you own copyrights over any of them and do not agree with it being shown here, please send us an email with ownership proof and we will remove it. 
Email us @@ <i>webmaster AT lookatnews.com</i>

Note: We are not responsible for the content of external websites that are linked from this site.
</p>
</div>

    @RenderPage("_googleAnalytics.cshtml")

<div>

<script type="text/javascript">
//    $('#bread-nav').affix();
    $('#nav-category').affix();
    

    $("img").error(function () {
        $(this).hide();
    });

</script>
    
</body>


</html>
